package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {

    //新增菜品和对应的口味
    void saveWithFlavor(DishDTO dishDTO);

    PageResult get(DishPageQueryDTO dishPageQueryDTO);

    void remove(List<Long> ids);

    DishVO getById(Long id);

    void put(DishDTO dishDTO);

    void startOrStop(Dish dish);

    List<Dish> list(Long categoryId);

    List<DishVO> user_selectByCategoryId(Long categoryId);
}

